﻿using SuporeSliplampApp.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace SuporeSliplampApp.ViewModels
{
	public class ScrollControlViewModel : NotifyBase
	{
        public static event EventHandler<string> scrollDelegate;

        private CommandBase _borderBrushCommand;

		public CommandBase BorderBrushCommand
		{
			get
			{
				if (_borderBrushCommand == null)
				{
					_borderBrushCommand = new CommandBase();
					_borderBrushCommand.DoExecute = new Action<object>(obj => 
					{
						try
						{
							var par = obj.ToString();
							//scrollDelegate.Invoke(this,par);	
							MessageBox.Show(par);						
						}
						catch (Exception)
						{

							throw;
						}
					});
				}
				return _borderBrushCommand;
			}


		}
	}
}
